﻿using AnyCAD.NX.ViewModel;
using Rapid.Sketch.Plugin.ViewModel;

namespace Rapid.Sketch.Plugin.View
{
    /// <summary>
    /// SketchRibbonTab.xaml 的交互逻辑
    /// </summary>
    public partial class SketchRibbonTab
    {
        public SketchRibbonTab(MainViewModel viewModel)
        {
            InitializeComponent();

            this.DataContext = new SketchRibbonViewModel(viewModel);
        }

        private void RibbonTabItem_Unloaded(object sender, System.Windows.RoutedEventArgs e)
        {
            ((SketchRibbonViewModel)this.DataContext).Unload();
        }
    }
}
